home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: axcdf1.pd.infn.it!LORETI
- From: loreti@axcdf1.pd.infn.it (Maurizio Loreti)
- Subject: Re: Sorting a directory
- X-Nntp-Posting-Host: axcdf1.pd.infn.it
- Message-ID: <DnBprM.MLz@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@axcdf1.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <4gbbi9$c7s@news1.radix.net>
- Date: Sun, 25 Feb 1996 08:47:44 GMT
-
- In article <4gbbi9$c7s@news1.radix.net>, jfw@radix.net (Jim Ward) writes:
- >I want to retrieve a sorted list of files in a directory.
- >I am using UNIX, on an HP, and I found by reading the
- >manpages I could use scandir() and alphasort() to perform the task
- >(these seem to be old BSD functions). When
- >I try to move the same code over to a SUN, the linker
- >(for the SunOS 5.4 cc) can't find these functions.
- >Is there a library that I can link with that provides them?
- >Or have they been dropped as the UNIX world moves from
- >BSD to System V? Is there something in the C library that
- >I should be using instead?
- >
- >Sincerely,
- >
- >Jim Ward
- >
-
- Since your question is about an implementation defined issue, the
- best that can be said is to read the man pages for your compiler.
- Maybe a man -k directory could help...
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-